'''
per_data=[]

for i in range(0,10):
    a=float(input('请输入您的评分:'))
    per_data.append(a)

per_data.sort()
per_data.pop()
del per_data[0]
sum=0
for i in per_data:
    sum+=i
sum /= 8

print('平均数为%.2f'%sum)



a=['王','张','陈','谢','赵','齐','白','方','吴','李']
room=[[],[],[],[]]

import random

b=random.randint(0,9)
y=0
for b in a:
    while y >= 3:
        room[y].append(b)
        y+=1
        a.remove(b)

for i in a:
    c=random.randint(0,3)
    room[c].append(i)

print(room)




per_dict={}
for i in range(0,3):

    name=str(input('请输入姓名:'))
    count=int(input('请输入获得的票数:'))

    per_dict[name]=count

paiming=sorted(per_dict.items(),key=lambda d: d[1])
print(paiming)




a={'p':'April','u':'August'}

ma={'r':'March','y':'May'}

u={'n':'June','l':'July'}
j={'a':'January','u':u}

month={'J':j, 'F':'February', 'M':ma, 'A':a, 'S':'September','O':'October','N':'November','D':'December'}

while True:
    m=input('请输入第一个字符:').upper()
    if m in month:
        if month[m] == j or month[m] == a:
            n = input("请输入第二个字符:").lower()
            if month[m][n] == u or month[m][n] == ma:
                x = input('请输入第三个字符:').lower()
                if x in ['r','y','n','l']:
                    print(month[m][n][x])
                    continue
                else:
                    print('输入错误！')
            if n in ['a','p','u']:
                print(month[m][n])
                continue
            else :
                print('输入错误！')

        elif month[m] == ma:
            print('您要查询的字符为:Ma...')
            n = input("请输入第三个字符:").lower()
            if n in ['r','y']:
                print(month[m][n])
                continue
            else:
                print('输入错误！')
        else:
            print(month[m])
    else:
        print('输入错误！请重新输入')

'''



































